//
//  Date.swift
//  Example
//
//  Created by QDSG on 2021/7/28.
//

import Foundation

extension Date {
    static var currentTime: String {
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
        return dateFormatter.string(from: Date())
    }
}
